package com.group.doctor.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.doctor.entity.DoctorFans;
import com.group.doctor.dao.DoctorFansMapper;
import com.group.doctor.service.IDoctorFansService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author KAGE
 * @since 2022-06-07
 */
@Service
public class DoctorFansServiceImpl extends ServiceImpl<DoctorFansMapper, DoctorFans> implements IDoctorFansService {
    @Resource
    private DoctorFansMapper doctorFansMapper;

    @Override
    public List<DoctorFans> list(int current, int size,int id) {

        Page<DoctorFans> fansPage = new Page<>(current, size);

        return doctorFansMapper.list(fansPage, id);
    }
}
